package com.budwk.app.miniapp.models;

import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;

/**
 * 事件评论对象 wx_event_comment
 *
 * @author dfxy
 * @date 2023-03-08
 */
@Data
//@EqualsAndHashCode(callSuper = true)
@Table("wx_event_comment")
public class WxEventComment extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论的id
     */
    @Id
    @Column
    @Comment("评论的id")
    @ApiModelProperty(description = "评论的id")
    @ColDefine(type = ColType.INT, width = 64)
    private Long id;

    /**
     * 事件id
     */
    @Column("event_id")
    @Comment("事件id")
    @ApiModelProperty(description = "事件id")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String eventId;

    /**
     * 事件类型
     */
    @Column("topic_type")
    @Comment("事件类型")
    @ApiModelProperty(description = "事件类型")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String topicType;

    /**
     * 评论内容
     */
    @Column("content")
    @Comment("评论内容")
    @ApiModelProperty(description = "评论内容")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String content;

    /**
     * 评论者id
     */
    @Column("from_uid")
    @Comment("评论者id")
    @ApiModelProperty(description = "评论者id")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String fromUid;

    /**
     * 评论者昵称
     */
    @Column("from_nickname")
    @Comment("评论者昵称")
    @ApiModelProperty(description = "评论者昵称")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String fromNickname;

    /**
     * 评论者的身份(是否是文章作者)
     */
    @Column("from_status")
    @Comment("评论者的身份(是否是文章作者)")
    @ApiModelProperty(description = "评论者的身份(是否是文章作者)")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String fromStatus;

    /**
     * 评论者头像
     */
    @Column("from_avatar")
    @Comment("评论者头像")
    @ApiModelProperty(description = "评论者头像")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String fromAvatar;

    /**
     * 赞
     */
    @Column
    @Comment("赞")
    @ApiModelProperty(description = "赞")
    @ColDefine(type = ColType.INT, width = 64)
    private Long agree;

    /**
     * 备注
     */
    @Column
    @Comment("备注")
    @ApiModelProperty(description = "备注")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String remark;

    /**
     * 状态
     */
    @Column
    @Comment("状态")
    @ApiModelProperty(description = "状态")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String status;

    /**
     * 排序
     */
    @Column
    @Comment("排序")
    @ApiModelProperty(description = "排序")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String sort;

    /**
     * 评论图片
     */
    @Column("images_url")
    @Comment("评论图片")
    @ApiModelProperty(description = "评论图片")
    @ColDefine(type = ColType.VARCHAR, width = 2000)
    private String imagesUrl;
}
